package com.peas.platform.module.icims.base.auth.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.auth.adapter.repository.UserFavoriteRepository;
import com.peas.platform.module.icims.base.auth.adapter.repository.po.UserFavoritePo;
import com.peas.platform.module.icims.base.auth.domain.UserFavoriteDomain;
import com.peas.platform.module.icims.base.auth.dto.UserFavoriteDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class UserFavoriteDomainImpl extends BaseDomainImpl<UserFavoriteDto, UserFavoritePo> implements UserFavoriteDomain {

    @Resource
    private UserFavoriteRepository userFavoriteRepository;

    @Override
    public BaseRepository<UserFavoritePo> getMapper() {
        return userFavoriteRepository;
    }

    @Override
    public Class<? extends BaseRepository<UserFavoritePo>> getRepositoryClass() {
        return UserFavoriteRepository.class;
    }

}
